package com.ifighter.service.team;

import java.sql.SQLException;

import android.database.Cursor;

public class Team {

	public static final String TABLE = "TEAM";

	private long idTeam;
	private String sName;
	private String imgLogo;

	/**
	 * 
	 * @param cursor
	 * @throws SQLException
	 */
	public Team (Cursor cursor) throws SQLException{

		this.idTeam = cursor.getLong(cursor.getColumnIndex("ID_TEAM"));
		this.sName  = cursor.getString(cursor.getColumnIndex("NAME")) != null ? cursor.getString(cursor.getColumnIndex("NAME")) : "";
	}

	public long getIdTeam() {
		return idTeam;
	}

	public String getsName() {
		return sName;
	}

	public void setsName(String sName) {
		this.sName = sName;
	}

	public String getImgLogo() {
		return imgLogo;
	}

	public void setImgLogo(String imgLogo) {
		this.imgLogo = imgLogo;
	}
}